package com.yhg.qxmall.cartorder.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.io.Serializable;
import java.util.List;

/**
 * @author 凌月青缃
 * @date 2020/12/22
 */
@Data
public class OrderItemVos implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long memberId;
    private String memberAddress;
    private String userName;
    private String mobile;
    private String receiverName;
    /**
     * 前端传来的计算好的总价
     */
    private Long totalPrice;
    private List<OrderItems>  orderItems;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class OrderItems {
        /**
         * 商品sku编号
         */
        private Long skuId;
        /**
         * 商品sku名字
         */
        private String skuName;
        /**
         * 商品sku图片
         */
        private String skuImage;
        /**
         * 单个购物商品的价格
         */
        private Long price;
        /**
         * 商品购买的数量
         */
        private Integer count;
    }

}
